package com.zhiyume.exception;

/**
 * 编译时异常处理
 * */
public abstract class AppCheckedException extends Exception{
	private static final long serialVersionUID = 1L;
	
	public AppCheckedException(){
		super();
	}
	
	
    public AppCheckedException (String msg){
    	super(msg);
    }
    
    public AppCheckedException(String msg, Throwable cause) {
        super(msg, cause);
    }
    
    public AppCheckedException(Throwable cause) {
        super(cause);
    }

    /**
     * 重写Exception 的getMessage方法
     * */
    @Override
	public String getMessage() {
		return ExceptionUtils.buildMessage(super.getMessage(), super.getCause());
	}
}
